<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>selectInformation</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath }/res/css/checkIn.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath }/res/css/selectInformation.css">
    <style>
        [v-cloak] {
          display:none;
        }
      </style>
</head>
<body class="bodyType">
    <div class="title">
        <samp>信息与更改</samp>
    </div>
    <div  style="width: 1000px;" id="selectInformation" v-cloak>
        <div class="total">
            <div class="checkInTitel">
                信息查询
            </div>
            <hr style="color: #f1f1f1; width: 100%;">
                <div class="selectDiv">
                    <label for="selectWhich" class="selectWhich">查找类型:</label>
                    <select v-model="selectWhich" name="selectWhich" id="selectWhich" class="selectWhich">
                        <option value="1">姓名</option>
                        <option value="2">房号</option>
                    </select>
                    <label for="guestStatus" style="margin-left: 17px;">旅客状态:</label>
                    <select v-model="guestStatus" name="guestStatus" id="guestStatus">
                        <option value="1">现在居住</option>
                        <option value="0">历史居住</option>
                    </select>
                    <label for="selectName" style="padding-left: 17px;">匹配内容：</label>
                    <input type="text" v-model="selectName" name="selectName" id="selectName" class="selectInput">
                    <input type="button" value="查询" @click="select"  style="width: 50px; height: 26px; margin-left: 17px; border-radius: 5px; border: none;">
                    <div class="showInformation" >
                        <div style="border:  #f1f1f1 solid 1px;width: 65%;">
                            <table style="padding: 2px;" class="selectTable">
                                <tr>
                                    <td>姓名</td>
                                    <td>房号</td>
                                    <td>身份证</td>
                                    <td>到期</td>
                                </tr>
                                <tr v-for="item in recordList">
                                    <td>{{item.name}}</td>
                                    <td>{{item.roomNum}}</td>
                                    <td>{{item.identity}}</td>
                                    <td>{{item.overDay}}</td>
                                </tr>
                            </table>
                        </div>
                        <div class="userCondition" style="margin-left: 60%;">
                            <input type="button" @click="downloadRecord" style="width: 50px; height: 26px; margin-left: 27px;" value="导出">
                        </div>
                    </div>
                    
                </div>
        </div>
        <div class="total" style="margin-top: 5px;">
            <div class=" checkInTitel">
                在住旅客信息修改
            </div>
            <hr style="color: #f1f1f1; width: 100%;">
                <div class="userCondition">
                    <label for="roomNum">房号：</label>
                    <input type="text" v-model="roomNum"  style="width: 70px;" name="roomNum" id="roomNum">
                    <label for="guest" style="padding-left: 36px;">姓名：</label>
                    <input type="text" v-model="name" style="width:  81px;" name="guestName1" id="guest">
                    <input type="button" @click="inspect" style="width: 50px; height: 26px; margin-left: 27px;" value="查找"> 
                </div>
                <div class="userCondition" v-for="item in selectContent">
                    <label for="guestName1">姓名：</label>
                    <input type="text" v-model="item.name" style="width:  81px;" name="guestName1" id="guestName1">
                    <label for="tel1" style="padding-left: 36px;">电话号码：</label>
                    <input type="text" v-model="item.tel" name="tel1" id="tel1">
                    <label for="identity1" style="padding-left: 39px;">身份证：</label>
                    <input type="text" v-model="item.identity" name="identity1" id="identity1">
                    <input type="submit" @click="modification(item)" style="width: 50px; height: 26px; margin-left: 27px;" value="修改">
                  </div>
        </div>
    </div>
    <script src="${pageContext.request.contextPath }/res/js/jquery.js"></script>
    <script src="${pageContext.request.contextPath }/res/js/vue.js"></script>
    <script src="${pageContext.request.contextPath }/res/js/selectInformation.js"></script>
</body>
</html>